﻿@model Module
@Html.Extra()
<table>
    <tr>
        <th>
            @Html.LabelFor(model => model.ParentId, "父级")
        </th>
        <td>
            @Html.MyNet().DropDownTreeFor(model => model.ParentId, Url.Action("Read"))
        </td>
    </tr>
    <tr>
        <th>
            @Html.LabelFor(model => model.Name, "名称")
        </th>
        <td>
            @Html.MyNet().TextBoxFor(model => model.Name, new ValidateOptions
            {
                RequiredError = "请输入名称",
                LengthMax = 64
            })
            @Html.MyNet().ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <th>
            @Html.LabelFor(model => model.Key, "代码")
        </th>
        <td>
            @Html.MyNet().TextBoxFor(model => model.Key, new ValidateOptions
            {
                RequiredError = "请输入代码",
                LengthMax = 64
            })
            @Html.MyNet().ValidationMessageFor(model => model.Key)
        </td>
    </tr>
    <tr>
        <th></th>
        <td>
            @Html.CheckBoxFor(model => model.IsEnable)
            @Html.LabelFor(model => model.IsEnable, "是否启用")
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(model => model.IconUrl, "图标")</th>
        <td>
            @Html.HiddenFor(model => model.IconUrl)
            @Html.Partial("_Icon")
        </td>
    </tr>
</table>
